package thread;

public class MyThread05 {
    public static void main(String[] args) throws InterruptedException {
        Thread thread = new Thread(() -> {
            System.out.println("使用 lambda 表达式");
        });
        thread.interrupt();
        System.out.println(thread.getState());
        thread.start();
        System.out.println(thread.getState());
        thread.join();
        System.out.println(thread.getState());
        System.out.println(thread.getState());

    }
}
